home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / Xt / XtSetLanguageProc.z / XtSetLanguageProc
Text File  |  1998-10-30  |  5KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXttttSSSSeeeettttLLLLaaaannnngggguuuuaaaaggggeeeePPPPrrrroooocccc((((3333XXXXtttt))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXttttSSSSeeeettttLLLLaaaannnngggguuuuaaaaggggeeeePPPPrrrroooocccc((((3333XXXXtttt))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XtSetLanguageProc - set the language procedure
  10.  
  11.      SSSSYYYYNNNNTTTTAAAAXXXX
  12.           Widget XtSetLanguageProc(_a_p_p__c_o_n_t_e_x_t, _p_r_o_c, _c_l_i_e_n_t__d_a_t_a)
  13.                 XtAppContext _a_p_p__c_o_n_t_e_x_t;
  14.                 XtLanguageProc _p_r_o_c;
  15.                 XtPointer _c_l_i_e_n_t__d_a_t_a;
  16.  
  17.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  18.           _a_p_p__c_o_n_t_e_x_t
  19.                     Specifies the application context in which the
  20.                     language procedure is to be used, or NULL.
  21.  
  22.           _p_r_o_c      Specifies the language procedure, or NULL.
  23.  
  24.           _c_l_i_e_n_t__d_a_t_a
  25.                     Specifes addional client data to be passed to the
  26.                     language procedure when it is called.
  27.  
  28.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  29.           _X_t_S_e_t_L_a_n_g_u_a_g_e_P_r_o_c sets the language procedure that will be
  30.           called from _X_t_D_i_s_p_l_a_y_I_n_i_t_i_a_l_i_z_e for all subsequent Displays
  31.           initialized in the specified application context. If
  32.           _a_p_p__c_o_n_t_e_x_t is NULL, the specified language procedure is
  33.           registered in all application contexts created by the
  34.           calling process, including any future application contexts
  35.           that may be created. If _p_r_o_c is NULL a default language
  36.           procedure is registered.  _X_t_S_e_t_L_a_n_g_u_a_g_e_P_r_o_c returns the
  37.           previously registered language procedure. If a language
  38.           procedure has not yet been registered, the return value is
  39.           unspecified but if this return value is used in a subsequent
  40.           call to _X_t_S_e_t_L_a_n_g_u_a_g_e_P_r_o_c, it will bcause the default
  41.           language procedure to be registered.
  42.  
  43.           The default language procdure does the following:
  44.  
  45.           +o    Sets the locale according to the environment. On ANSI
  46.                C-based systems this is done by calling _s_e_t_l_o_c_a_l_e(
  47.                _L_C__A_L_L, language ). If an error is encountered a
  48.                warning message is issued with _X_t_W_a_r_n_i_n_g.
  49.  
  50.           +o    Calls _X_S_u_p_p_o_r_t_s_L_o_c_a_l_e to verify that the current locale
  51.                is supported. If the locale is not supported, a warning
  52.                message is issued with _X_t_W_a_r_n_i_n_g and the locale is set
  53.                to ``C''.
  54.  
  55.           +o    Calls _X_S_e_t_L_o_c_a_l_e_M_o_d_i_f_i_e_r_s specifying the empty string.
  56.  
  57.           +o    Returns the value of the current locale. On ANSI C-
  58.                based systems this is the return value from a final
  59.                call to _s_e_t_l_o_c_a_l( _L_C__A_L_L, NULL ).
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXttttSSSSeeeettttLLLLaaaannnngggguuuuaaaaggggeeeePPPPrrrroooocccc((((3333XXXXtttt))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXttttSSSSeeeettttLLLLaaaannnngggguuuuaaaaggggeeeePPPPrrrroooocccc((((3333XXXXtttt))))
  71.  
  72.  
  73.  
  74.           A client wishing to use this mechanism to establish locale
  75.           can do so by calling _X_t_S_e_t_L_a_n_g_u_a_g_e_P_r_o_c prior to
  76.           _X_t_D_i_s_p_l_a_y_I_n_i_t_i_a_l_i_z_e.
  77.  
  78.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  79.           _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s - _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
  80.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.